package framework.util.persistent;

import java.util.Date;

import org.prevayler.Transaction;

import framework.rpgsystem.item.ItemEntry;

public class RemoveItemEntry implements Transaction{

	private static final long serialVersionUID = 1L;

	private ItemEntry removeItemEntry;
	
	public RemoveItemEntry(){}
	
	public RemoveItemEntry(ItemEntry toRemove){
		removeItemEntry = toRemove;
	}
	
	public void executeOn(Object itemEntry, Date arg1) {
		((DataCollection)itemEntry).getItensEntry().removeItem(removeItemEntry);
	}

}
